::CODER BY taurus POWERD BY iBAT
Setlocal enabledelayedexpansion
@echo off

echo ==========================
echo mkdir AutoCommit Folder
echo ==========================
mkdir AutoCommit

echo ==========================
echo copy TravisCI config file
echo ==========================
copy .travis.yml AutoCommit

echo ==========================
echo enter Folder
echo ==========================
cd AutoCommit

echo ==========================
echo generate README.md
echo ==========================
for /f "tokens=1,2 delims=:" %%i in ('time/t') do set t=%%i%%j
set "curtime=%date:~0,4%%date:~5,2%%date:~8,2%%t:~0,4%%time:~6,2%"
echo %curtime%>README.md

echo ==========================
echo git init
echo ==========================
git init

echo ==========================
echo set remote repo url
echo ==========================
git remote add origin git@github.com:taylortaurus/AutoCommit.git

echo ==========================
echo checkout new branch
echo ==========================
git checkout -b auto-commit

echo ==========================
echo add readme
echo ==========================
git add .

echo ==========================
echo commit msg
echo ==========================
set "msg=%computername%_Complete_Yccn_ZtbTool_Automation_Test"
echo %msg%
git commit -am %msg%


echo ==========================
echo push remote repo
echo ==========================
git push --force origin auto-commit


echo ==========================
echo del Folder
echo ==========================
cd ..

rd /q /s AutoCommit



